package cn.edu.nju.oraldefense.action;

import javax.annotation.Resource;

import org.apache.struts2.json.annotations.JSON;

import cn.edu.nju.oraldefense.model.DefenseBean;
import cn.edu.nju.oraldefense.service.DefenseService;

import com.opensymphony.xwork2.ActionSupport;

public class DefenseInfoAction extends ActionSupport {

	private DefenseService defenseService;
	private DefenseBean defenseBean;

	@JSON(serialize = false)
	public DefenseService getDefenseService() {
		return defenseService;
	}

	@Resource
	public void setDefenseService(DefenseService defenseService) {
		this.defenseService = defenseService;
	}

	public DefenseBean getDefenseBean() {
		return defenseBean;
	}

	public void setDefenseBean(DefenseBean defenseBean) {
		this.defenseBean = defenseBean;
	}

	public String execute() {
		return SUCCESS;
	}
}
